package com.xunlai.infra.permission.manager.web.converter;

import com.xunlai.infra.permission.manager.web.vo.department.CreateDepartmentReqVo;
import com.xunlai.infra.permission.manager.web.vo.department.DepartmentListVo;
import com.xunlai.infra.permission.manager.web.vo.department.QueryDepartmentVo;
import com.xunlai.infra.permission.storage.entity.Department;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 12/11/22 9:32 PM
 */
@Mapper
public interface DepartmentConverter {

    DepartmentConverter INSTANCE = Mappers.getMapper(DepartmentConverter.class);


    Department convertCreateReq2Department(CreateDepartmentReqVo createDepartmentReqVo);

    DepartmentListVo convert2ListVo(Department department);

    Department convertQueryReqVo2Department(QueryDepartmentVo queryDepartmentVo);
}
